home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / brutil.arc / DDU.DOC < prev    next >
Text File  |  1988-05-10  |  4KB  |  93 lines

  1. DDU (Dangerous Disk Utility) provides many uncommon features such as showing
  2. the clusters assigned to files, listing allocated, bad and free clusters and
  3. more.
  4.  
  5. Syntax:
  6.  
  7. The syntax for DDU depends on the function you wish to perform.  More than one
  8. function may be requested with a single execution of the program
  9.  
  10. General Syntax:
  11.  
  12. DDU param-1 param-2 param-3 ... param-x
  13.  
  14. Specific Syntax:
  15.  
  16. DDU [d:][path\]filename.ext    Show clusters assigned to the specified file
  17. DDU [d:]/A            Show allocated cluster numbers
  18. DDU [d:]/B            Show bad cluster numbers
  19. DDU [d:]/F            Show free cluster numbers
  20. DDU [d:]cluster/M*        Mark specified cluster as bad
  21. DDU [d:]cluster/O        Show name of file that contains this cluster
  22. DDU [d:]/P            Show parameters for specified drive
  23. DDU [d:]cluster/U*        Unmark specified cluster as free
  24. DDU [d:]/V*            Verify specified disk and mark all bad clusters
  25.  
  26. Note that all options marked with a trailing asterisk (*) rewrite the disk's
  27. file allocation table.    These options are the ones that may be "dangerous".
  28.  
  29. Requirements:
  30.  
  31. DOS 2.0 or greater.  I believe that with a slight change, this could be
  32.   overcome but I don't have a DOS 1.XX operating system to test with.  The
  33.   problem is that DOS 1 does not support directories or the DOS function call
  34.   that returns the current directory.
  35.  
  36. Standard disk formats.    The program has tables for 160K, 180K, 320K, 360K and
  37.   1.2 meg 5.25 inch disks with no boot record.    It should be able to support
  38.   other formats provided with a properly formatted boot record.  I have a
  39.   modified VDISK.SYS device driver installed with which it also works.
  40.  
  41. 25 lines per screen.  If you have (for whatever reason) a smaller screen, you
  42.   may loose information.  The best example of this is seen with the /P option
  43.   which currently displays about 17 lines.)
  44.  
  45. Notes:
  46.  
  47. As always, I have included the source code.  As mentioned there, this program
  48. was derived directly from three other programs: CHAIN.ASM, MARK.ASM, and
  49. OWNER.ASM.  All of which were written by Steven M. Georgiaids.    His original
  50. code was (and is) extensively commented.  My changes, on the other hand, are
  51. not.  Aside from reworking the OWNER (/O) algorythm, no really drastic changes
  52. were made that affected the documentation he provided in the source code.
  53. Though the code for the /A, /B, /F, and /P options was entirely written by me,
  54. it does not really use much general code that is not seen in his source code.
  55. I have elected to leave his original copyright notice in the source code as
  56. an acknowledgement for his very worthwhile efforts.
  57. When you use the /P option, there are two things you should be aware of:
  58. 1.  The disk parameters are listed in the same order as they occur in a boot
  59. sector.
  60. 2.  Calculated values are shown in parentheses
  61.  
  62. When you use the /V option, you should be prepared for a long wait (10 to 15
  63. minutes for verifying a hard disk.  If all goes well, you should see no
  64. messages until DDU finishes verifying the media.  If DDU discovers bad sectors
  65. in the system area of the disk, (boot sector, FAT sectors or root directory
  66. sectors) it will terminate immediately with an error message.  If errors are
  67. found in the data area of the disk, it will attempt to mark the cluster
  68. containing the bad sectors.  If the cluster is in use by another file or is
  69. already marked as bad or reserved, a message to that effect will be displayed
  70. and the program will continue.    Otherwise, the offending cluster will be marked
  71. bad.
  72.  
  73. Note that any drive specification remains in effect until another parameter on
  74. the same command line containing a drive spec is supplied.  If no drive is
  75. specified with the first parameter the current (default) drive will be used.
  76. The path specification is not retained from one parameter to the next.    If it
  77. is not given, it is always assumed that the current directory for that drive
  78. is to be used.
  79.  
  80. Be careful! Enjoy! and hopefully find this program useful.
  81.  
  82. Bruce E. Noblick
  83. 185 Crestview Road,
  84. Columbus, ohio 43202
  85.  
  86. (614) 262-4564 evenings and weekends (eastern time).
  87. seful.
  88.  
  89. Bruce E. Noblick
  90. 185 Crestview Road,
  91. Columbus, ohio 43202
  92.  
  93. (614) 262-4564 evenings and weekends (eastern t